{
	template:`
    <m-page @back="back" title="注册商家">
        <m-top></m-top>
        <m-title>商家信息</m-title>
        <m-card>
            <div class="cu-form-group">
                <div class="title text-red">商家名称</div>
                <m-input v-model="business.name" placeholder="请输入商家名称"></m-input>
            </div>
            <div class="cu-form-group">
                <div class="title text-red">商家描述</div>
                <m-input type="textarea" v-model="business.description" placeholder="请输入商家描述"></m-input>
            </div>
            <div class="cu-form-group">
                <div class="title text-red">首店名称</div>
                <m-input v-model="store.name" placeholder="请输入首店名称"></m-input>
            </div>
        </m-card>
        <m-title>登录信息</m-title>
        <m-card>
            <div class="cu-form-group">
                <div class="title text-red">姓名</div>
                <m-input v-model="user.realName" placeholder="请输入姓名"></m-input>
            </div>
            <div class="cu-form-group">
                <div class="title text-red">手机号</div>
                <m-input v-model="user.phoneNum" placeholder="请输入手机号"></m-input>
            </div>
            <div class="cu-form-group">
                <div class="title text-red">密码</div>
                <m-input v-model="user.password" placeholder="请输入密码"></m-input>
            </div>
        </m-card>
        <div class="flex padding-lr padding-bottom">
            <div class="flex-sub flex flex-direction">
                <m-button @click="apply">注册</m-button>
            </div>
        </div>
    </m-page>
	`,
	props: ['param','parentVue'],
	data:function(){
		return {
		    business:{},
		    store:{name:'旗舰店',color:'blue',tel:'--',address:'未知'},
		    user:{realName:'老板'}
		};
	},
	mounted(){
	},
	methods:{
        apply:function(){
            this.requestData('action/base/businessInfo/apply',
                {business:this.business,store:this.store,user:this.user},
                (data)=>{
                    if(data.code==0){
                        this.remind().success(data.msg);
                        this.back(true);
                    }else{
                        this.remind().error(data.msg);
                    }
                }
            );
        },
	}
}